<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Bai 2.4</title>
</head>

<body>
<?php
	if(isset($_POST["hoten"])&&isset($_POST["chisocu"])&&isset($_POST["chisomoi"]))
	{
			$hoten=$_POST["hoten"];
			$chisocu=$_POST["chisocu"];
			$chisomoi=$_POST["chisomoi"];
			$sotien=($chisomoi-$chisocu)*$_POST["dongia"];
	}
?>
<form id="form1" name="form1" method="post" action="Bai2_4.php">
  <table width="350" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr bgcolor="#FF9933" style="text-align: center; font-weight: bold; font-size: 24px;">
      <td colspan="3">THANH TOÁN TIỀN ĐIỆN</td>
    </tr>
    <tr>
      <td nowrap="nowrap" bgcolor="#FFCC99">Tên chủ hộ:</td>
      <td nowrap="nowrap" bgcolor="#FFCC99"><input name="hoten" type="text" id="hoten" value="<?php echo $hoten; ?>" /></td>
      <td nowrap="nowrap" bgcolor="#FFCC99">&nbsp;</td>
    </tr>
    <tr>
      <td nowrap="nowrap" bgcolor="#FFCC99">Chỉ số cũ:</td>
      <td nowrap="nowrap" bgcolor="#FFCC99"><input name="chisocu" type="text" id="chisocu" value="<?php echo $chisocu; ?>" /></td>
      <td nowrap="nowrap" bgcolor="#FFCC99">(Kw)</td>
    </tr>
    <tr>
      <td nowrap="nowrap" bgcolor="#FFCC99">Chỉ số mới:</td>
      <td nowrap="nowrap" bgcolor="#FFCC99"><input name="chisomoi" type="text" id="chisomoi" value="<?php echo $chisomoi; ?>" /></td>
      <td nowrap="nowrap" bgcolor="#FFCC99">(Kw)</td>
    </tr>
    <tr>
      <td nowrap="nowrap" bgcolor="#FFCC99">Đơn giá:</td>
      <td nowrap="nowrap" bgcolor="#FFCC99"><input name="dongia" type="text" id="dongia" value="2000" /></td>
      <td nowrap="nowrap" bgcolor="#FFCC99">(VNĐ)</td>
    </tr>
    <tr>
      <td nowrap="nowrap" bgcolor="#FFCC99">Số tiền thanh toán:</td>
      <td nowrap="nowrap" bgcolor="#FFCC99"><input name="sotien" type="text" disabled="disabled" id="sotien" style="background-color:#F6C" value="<?php echo $sotien; ?>" /></td>
      <td nowrap="nowrap" bgcolor="#FFCC99">(VNĐ)</td>
    </tr>
    <tr>
      <td colspan="3" bgcolor="#FFCC99" style="text-align: center"><input type="submit" name="submit" id="submit" value="Tính" /></td>
    </tr>
  </table>
</form>
</body>
</html>